//登出方法
function logout() {
    $.ajax({
        url: "http://localhost:8989/hospital/User/Logout",
        type: "post",
        dataType: "json",
        success: function (state) {
            if (state == true) {
                location.href = "登录.html";
            }
        }
    })
}